package com.ruoyi.warning.service;


import com.ruoyi.warning.domain.dto.ConfigurationDTO;
import com.ruoyi.warning.domain.entity.Contacts;
import com.ruoyi.warning.domain.entity.Event;

/**
 * <p>
 * 告警发送的服务类
 * </p>
 *
 * @author chenhc
 * @since 2025-02-06
 */
public interface WarningSendService {
    // 发送短信
    void sendSms(ConfigurationDTO configurationDTO) throws Exception;
    //发送钉钉
    void sendDing(ConfigurationDTO configurationDTO) throws Exception;
    //发送邮件
    void sendEmail(ConfigurationDTO configurationDTO) throws Exception;
    //发送语音
    void sendPhoneByVoice(ConfigurationDTO configurationDTO) throws Exception;
    // 发送文字转语音
    void sendPhoneByTts(ConfigurationDTO configurationDTO) throws Exception;
    String disposeSms(Contacts contacts, Event event) throws Exception;
}
